<template>
    <div>
        
        <h1>{{pluginsMsg}}</h1>
        <input type="text" v-model="msg"  v-focus />
        <button @click="pluginsMethod">插件Vue原型方法</button>

    </div>
</template>

<script>

import myPlugin from '../plugin/myPlugin.js'
import Vue from 'vue'

//使用插件
//Vue.use(myPlugin)
Vue.use(myPlugin,{name:'张三'})



export default {
    name: 'HelloPlugin',
    data() {
        return {
            msg: 'Hello Vue.js!'
        }
    },
    /* methods: {
        test(){
            this.pluginsMethod()
        }
    } */
}
</script>

